<html>
<head>
<link rel="stylesheet" type="text/css" href="iec.css" />
<script src="https://ajax.googleapis.com/ajax/libs/jquery/1.7.2/jquery.min.js" type="text/javascript" ></script>
<script src="https://ajax.googleapis.com/ajax/libs/jqueryui/1.8.18/jquery-ui.min.js" type="text/javascript" ></script>
<script src="https://hashmask.googlecode.com/svn-history/r2/trunk/jquery.sha1.js" type="text/javascript" ></script>
<script type="text/javascript">

function ISODateString(d){
 function pad(n){return n<10 ? '0'+n : n}
 return d.getUTCFullYear()+'-'
      + pad(d.getUTCMonth()+1)+'-'
      + pad(d.getUTCDate())+'T'
      + pad(d.getUTCHours())+':'
      + pad(d.getUTCMinutes())+':'
      + pad(d.getUTCSeconds())+'Z'}

</script>
</head>
<body>
				<iframe id="maestroContent" width="800px" height="1000px"  frameborder="0"></iframe>
				<iframe id="testData" width="500px" height="300px" frameborder="0"></iframe>

<script type="text/javascript">
	$(function() {
		$( "#jqbutton" ).button();
		$( "a", ".demo" ).click(function() { return false; });
	});

var username = "mvandoren";
var dt = new Date();
var timestamp = ISODateString(dt);
var secretkey = "4BDA2663-0DD2-16A6-7ABF9C4CA9FCC5B8";
var prehmac = username + timestamp + secretkey;
var hmacresult = $.sha1(prehmac);
var hmacid = "298944";
var baseURL = "https://demo.geolearning.com/geonext/mikevandoren/sha1login.geo?username=" + escape(username) + "&timestamp=" + escape(timestamp) + "&id=" + hmacid + "&hmac=" + hmacresult;
var analyticsHome = escape("/geonext/mikevandoren/dataanalyticshome.geo?nav=DataAnalytics&hideMenus=true");
var learnerHome = escape("/geonext/mikevandoren/displaywidgetpage.geo?id=uki1PNzR4gZsuiEmE4YFD9eztr9gVhMQ9EdVsXFgFC4%3d&nav=IECMyLearningHomePage&hideMenus=true");
$("#username").html(username);
$("#timestamp").html(timestamp);
$("#hmac").html(hmacresult);
$("#maestroContent").attr('src', baseURL + "&OriginalURL=" + analyticsHome);
$("#maestroContent").ready(function(){
	$("#maestroContent").load(function()
	{
		callback(this);
	});
	$("#maestroContent").hide();
	$("#testData").attr('src', 'https://services.geolearning.com/demo-jasperserver-pro/flow.html?_flowId=viewAdhocReportFlow&viewAsDashboardFrame=true&reportUnit=/adhoc/Reports/Adhoc_Report&fid=contentFrame_frame_1');

});
</script>

</body>
</html>